package com.atguigu.eduservice.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.util.StringJoiner;

/**
 * 写入excel表头对应
 */

public class DemoData {

    @ExcelProperty(value = "学生学号",index = 0)
    private String sno;

    @ExcelProperty(value = "学生姓名",index = 1)
    private String name;

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", DemoData.class.getSimpleName() + "[", "]")
                .add("sno='" + sno + "'")
                .add("name='" + name + "'")
                .toString();
    }
}
